﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using COFE.Core;

namespace COFE.Core.Plugin
{
    
    public abstract class PluginBase : IPlugin
    {
        public const int Priority_COFE = 0;
        public const int Priority_COFEACT = 1;
        public const int Priority_COFEIO = 2;
        public const int Priority_COFEDB = 3;
        public const int Priority_COFEWS = 4;
        

        #region Constructor

        public PluginBase(int priority)
        {
            Priority = priority;
        }

        #endregion

        #region Methods       

        public int CompareTo(IPlugin other)
        {
            return Priority.CompareTo(other.Priority);
        }

        #endregion

        #region Data

        #endregion

        #region Public Properties

        public int Priority { get; private set; }
        
        #endregion






    }
}
